<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>相对定位</title>
		<style type="text/css">
			.first{
				width: 100px;
				height: 100px;
				background-color: red;
				position: relative;  
				left: 100px;       
				top: 50px;
			}
			.second{
				width: 200px;
				height: 200px;
				background-color: green;
			}
			
		</style>
	</head>
	<body>
		<div class="first">div1</div>
		<div class="second">div2</div>
	</body>
</html>
